package com.yenlien.traceyun.business.trace;

import java.lang.annotation.*;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-07-23
 * @description: 追溯
 **/

@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface TraceSql {


    /**
     * sql
     *
     * @return
     */
    String sql() default "";

    /**
     * sql参数
     *
     * @return
     */
    String[] sqlParams() default {};

    /**
     * 启用占位符
     *
     * @return
     */
    boolean messageFormat() default false;

}
